﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="login.ascx.cs" Inherits="Web.controls.login" %>
<style type="text/css">
    .auto-style2 {
        width: 59px;
        text-align: right;
    }
    .auto-style3 {
        width: 86px;
    }
    .tmpt {
        float:left;
    }
</style>
<script  type="text/javascript">
    function reloadcode() {
        var verify = document.getElementById('icode');
        verify.setAttribute('src', 'validate.aspx?id=' + Math.random());
    }
</script>

<div>
    <table style="width: 280px; height: 103px;">
        <tr>
            <td class="auto-style2">用户名:</td>
            <td class="auto-style3">
                <asp:TextBox ID="TextBox1" runat="server" Width="121px"></asp:TextBox>
            </td>
            
        </tr>
        <tr>
            <td class="auto-style2">密码:</td>
            <td class="auto-style3">
                <asp:TextBox ID="TextBox2" runat="server" Width="123px" style="margin-left: 0px" TextMode="Password"></asp:TextBox>
            </td>
           
        </tr>
        <tr>
            <td class="auto-style2">验证码:</td>
            <td class="auto-style3">
                <asp:TextBox ID="TextBox3" runat="server" Width="55px" CssClass="tmpt"></asp:TextBox>
                <img  id="icode" alt="看不清？？点我" src="/validate.aspx" onclick="javascript:reloadcode(); "  />

            </td>
           
        </tr>
        <tr>
            <td class="auto-style2"></td>
            <td class="auto-style3">
                <asp:Button ID="Button1" runat="server" Text="登录" OnClick="Button1_Click" />
                <asp:Button ID="Button2" runat="server" Text="注册" OnClick="Button2_Click" />
            </td>
           
        </tr>
    </table>
</div>